% genetic algorithm main
% params.seeds = 50       % population number
% params.dimension = 5    % dimension
% params.digits = 10      % encode each dimension in binary
% params.crossover_rate = % 
% params.mutation_rate =
% params.iterations = 200 % maximun iterations
% params.upper_bound = 20
% params.lower_bound = -20
% params.func = 
clc;
clear;
addpath(genpath('../benchmark/'));
addpath(genpath('./common/'));

params.seeds = 50;       % population number
params.dimension = 5;    % dimension
params.digits = 10;      % encode each dimension in binary
params.crossover_rate = 0.3;% 
params.mutation_rate = 0.1; 
params.iterations = 200; % maximun iterations
params.upper_bound = 20;
params.lower_bound = -20;
params.func = @Sphere;

result = GA(params);